package net.xmat.webtest.utils;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DataLoaderListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent servletContextEvent) {
	}

	public void contextInitialized(ServletContextEvent servletContextEvent) {
		DatabaseLoader loader = new DatabaseLoader();
		loader.loadDatabase();
	}

	private static final Logger logger = LoggerFactory.getLogger(DataLoaderListener.class);
}
